﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Wei8808Cms.BLL;
using Wei8808Cms.Model;

namespace Wei8808Cms.WebSite
{
    public partial class Index : System.Web.UI.Page
    {
        private readonly  AdbannerBLL _adbannerBll=new AdbannerBLL();

        private readonly ProductBLL _productBll = new ProductBLL();

        protected List<AdbannerInfo> AdbannerList { get; set; }

        protected List<ProductInfo> ProductList { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitializationData();
            }
        }

        public void InitializationData()
        {
            AdbannerList = _adbannerBll.GetAdbannerList();
            ProductList = _productBll.GetProductList();
        }
    }
}